package com.example.layui.demo.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

@Data
@Getter
@Setter
public class ArticleVO extends Article {
    private Integer page;
    private Integer limit;
    private Integer start;

    public  ArticleVO() {
        if (page == null)
            start= 0;
        else
            start= (page - 1) * limit;
    }
}
